home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / catD / size.z / size
Encoding:
Text File  |  2002-10-03  |  3.0 KB  |  66 lines

  1.  
  2.  
  3.  
  4. ssssiiiizzzzeeee((((DDDD2222))))                                                              ssssiiiizzzzeeee((((DDDD2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_iiii_zzzz_eeee - return size of logical block device
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_pppp_aaaa_rrrr_aaaa_mmmm_...._hhhh_>>>>
  14.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  15.      _iiii_nnnn_tttt _p_r_e_f_i_x_ssss_iiii_zzzz_eeee_((((_dddd_eeee_vvvv______tttt _d_e_v_))))_;;;;
  16.  
  17.    AAAArrrrgggguuuummmmeeeennnnttttssss
  18.      _d_e_v       The logical device number.
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      The _ssss_iiii_zzzz_eeee entry point returns the number of _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR-byte units on a
  22.      logical block device (partition).  _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR, defined in _pppp_aaaa_rrrr_aaaa_mmmm_...._hhhh, is the
  23.      number of bytes per logical disk sector.
  24.  
  25.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  26.      On success, the _ssss_iiii_zzzz_eeee routine should return the number of _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR-byte
  27.      units on the logical block device specified by _d_e_v; on failure, _ssss_iiii_zzzz_eeee
  28.      should return -1.  Failure cases should include devices whose size will
  29.      not fit in an _iiii_nnnn_tttt; these devices should have a _ssss_iiii_zzzz_eeee_6666_4444 entry point as
  30.      well.
  31.  
  32. UUUUSSSSAAAAGGGGEEEE
  33.      This entry point is required in all block device drivers.
  34.  
  35.      _ssss_iiii_zzzz_eeee(D2) is called only when the device is open.
  36.  
  37.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  38.      The _ssss_iiii_zzzz_eeee routine has user context and can sleep.  However, it should be
  39.      careful not to spend much time sleeping, especially if the routine is
  40.      called when the logical device is not open.
  41.  
  42. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  43.      size64(D2)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.